<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<h2><span class="red"><a style="color:#bd1b2a;" href="/chinayachting/frontend/activities/readActivityNews.do?channelId=${newsactivityForm.channelId}">${newsactivityForm.channelName}</a></span></h2>
    	<div class="tab_menu">
    	<ul>
    	<logic:iterate id="scList2" name="newsactivityForm" property="subChannelList" indexId="i">
	   		<bean:define id="scId" name="scList2" property="id"/>
	       	<li <logic:equal name="newsactivityForm" property="subChannelId" value="${scId}">class="selected"</logic:equal> onclick="callNewsServer(${newsactivityForm.newsType},${i});">${scList2.name}</li>
	    </logic:iterate>
	    </ul>
    	</div>
		<div class="tab_box">
			<div>
			<logic:equal name="newsactivityForm" property="newsType" value="5">
			<div class="book"><img src="images/book_03.jpg" alt="游艇手册" /></div>
			</logic:equal>
			<ul class="newlist">
                <logic:iterate id="news" name="newsactivityForm" property="channelList" indexId="i">
        		<% String hasStyle = "class=\"light\""; if(i % 2 == 1) { hasStyle = "";}  %>
            		<li <%=hasStyle %>>
            		    <bean:define id="subChannelName" name="news" property="key"/>
            		    <% 
            		    	String scName = subChannelName.toString();
            		    	int scId = scName.lastIndexOf("&");
            		    	scName = scName.substring(0,scId);
            		    %>
            		    <a href="/chinayachting/frontend/activities/readNoticeNewsBySubChannel.do?channelId=${newsactivityForm.channelId}&subChannelId=${news.value.subChannelId}" title="[<%=scName %>]">[<%=scName %>]</a>
            			<a href="/chinayachting/frontend/activities/readOneNoticeNews.do?id=${news.value.id }&channelId=${newsactivityForm.channelId}&subChannelId=${news.value.subChannelId}" title="${news.value.title}" class="kind">${news.value.title}</a>
            		</li>
           	  	</logic:iterate>
           	  	<logic:empty name="newsactivityForm" property="channelList">本频道无信息！</logic:empty>
            </ul>
			</div>
		</div>
		<div class="more_red"><a href="/chinayachting/frontend/activities/readNoticeNewsBySubChannel.do?channelId=${newsactivityForm.channelId}&subChannelId=${newsactivityForm.subChannelId}" title="more&gt;&gt;"><span>more&gt;&gt;</span></a></div>